using UnityEngine;
 // 游戏分数管理器
public class ScoreManager : MonoBehaviour
{
	public float totalScore = 0;

	public void resetScore()
	{
		totalScore = 0;
	}

	public float getScore()
	{
		return totalScore;
	}

	public void addScore(float add)
	{
		totalScore += add;
		Debug.Log(totalScore);
	}

}